/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: RxBaseConstant
 * @Package com.rx.core.base
 * @Description: 全局公共常量
 * @author: 陈锦韬
 * @date: 2020\4\19 0019
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.core.base;

/**
 * @author: Administrator
 * @Description: 全局公共常量
 * @date: 2020\4\19 0019
 */
public class RxBaseConstant {
    /**
     * 请求系统名称
     */
    public static final String REQUEST_SYSTEM_NAME = "request_system_name";
    /**
     * 请求系统编号
     */
    public static final String REQUEST_SYSTEM_CODE = "request_system_code";
    /**
     * 请求序列号
     */
    public static final String REQUEST_SN = "request_sn";
    /**
     * 报文类型-请求
     */
    public static final String PACKET_TYPE = "PACKET";
    /**
     * 报文类型-请求
     */
    public static final String REQUEST_PACKET = "request";
    /**
     * 报文类型-响应
     */
    public static final String RESPONSE_PACKET = "response";
    /**
     * 时间格式
     */
    public static final String DATE_FORMAT_DATEONLY = "yyyy-MM-dd";
    /**
     * 时间格式
     */
    public static final String DATE_FORMAT_DATETIME = "yyyy-MM-dd HH:mm:ss";

    /**
     * 接口编码
     */
    public static final String APPLICATION_JSON_UTF8_VALUE = "application/json;charset=UTF-8";


    public static final String INPUT_DATA_CLASS_SUFFIX="Form";

    /**
     * 分页查询
     */
    public static final String SEARCH_PAGE = "searchPage";
    public static final String SEARCH_LIST = "searchList";
    public static final String BATCH = "batch";
    public static final String BATCH_SAVE = "batchSave";
    public static final String BATCH_INSERT = "batchInsert";
    public static final String BATCH_UPDATE = "batchUpdate";
    /**
     * url偏移
     */
    public static final int URL_OFFSET_API = 1;
    public static final int URL_OFFSET_TYPE = 2;
    public static final int URL_OFFSET_FORM = 3;
    public static final int URL_OFFSET_SERVICE = 4;
    public static final int URL_OFFSET_METHOD = 5;


    /**
     *
     */
    public static final String ATTRIBUTES_VALUE = "value";
    public static final String ATTRIBUTES_VALUES = "values";

    /**
     * 默认包路径
     */
    public static final String DEFALUT_PKG_DATA = "com.rx.vo";
    public static final String DEFALUT_PKG_DAO = "com.rx.dao";
    public static final String DEFALUT_PKG_SERVICE = "com.rx.service";
    public static final String DEFALUT_PKG_CORE = "com.rx.core.*";
    public static final String DEFALUT_PKG_HANDLER = "com.rx.core.handler";

    /**
     * 处理器默认key值
     */
    public static final String DEFAULT_URL_KEY = "DEFAULT_URL_KEY";
    public static final String STANDARD_API = "/rx-standard-api";
    public static final String CONFIG_STANDARD_API = "${rx.standard.url.start:/rx-standard-api}";
    public static final String CONFIG_COMMON_API ="${rx.common.url.start:/common}";
    public static final String CONFIG_OAUTH_API ="${rx.oauth.url.start:/oauth}";

    public static final String URL_FORM = "{form}";
    public static final String URL_SERVER = "{other}";

    /***
     * 处理器结果key前缀
     */
    public static final String RESULT_PREFIX_KEY="RESULT_PREFIX";
    public static final String RESULT_QUERY_KEY="RESULT_QUERY_KEY";

    public static final String HEARER_JSON_TOKEN="json-token";
    public static final String HEARER_AUTHORIZATION="Authorization";
    public static final String HEARER_LIMIT_MARK="LIMIT-MARK";
    public static final String SECRET_LIMIT_MARK="SECRET_LIMIT_MARK";


    public static final String CHARSET = "UTF-8";
    public static final String RSA_ALGORITHM = "RSA";
}
